apiVersion: storage.k8s.io/v1
kind: StorageClass
metadata:
  name: local-storage
  # annotations:
  #   storageclass.kubernetes.io/is-default-class: "true"
provisioner: kubernetes.io/no-provisioner
volumeBindingMode: WaitForFirstConsumer

---
kind: PersistentVolume
apiVersion: v1
metadata:
  name: my-local-pv
  labels:
    type: local
spec:
  storageClassName: crc-csi-hostpath-provisioner
  capacity:
    storage: 1Gi
  accessModes:
    - ReadWriteOnce
  hostPath:
    path: "/home/mypv"

---
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
  name: my-local-pvc
  labels:
    type: local
spec:
  storageClassName: crc-csi-hostpath-provisioner
  accessModes:
    - ReadWriteOnce
  resources:
    requests:
      storage: 1Gi